import React, { PropTypes } from 'react';
import { Router, Route, IndexRoute, Link } from 'dva/router';
import Map from './routes/Map';
import Text from './routes/Text';
import ZoomMap from './routes/zoomMap';
import OptMap from './routes/optMap';

export default function({ history }) {
  return (
    <Router history={history}>
      <Route path="/" component={Map} />
      <Route path="/t" component={Text} />
      <Route path="/zoom" component={ZoomMap} />
      <Route path="/opt" component={OptMap} />
    </Router>
  );
};
